import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
// import reportWebVitals from './reportWebVitals';
import { RouterProvider } from 'react-router-dom';
import router from './router';
//导入自定义主题样式
import './theme.css'
import { Provider } from 'react-redux'
import store from '@/store'

const root = ReactDOM.createRoot(document.getElementById('root'));
root.render(
  // 这是严格模式,会使得redux执行两次,关闭即可
  // <React.StrictMode>
  <Provider store={store}>
    <RouterProvider router={router} />
  </Provider>
  // </React.StrictMode>
);
// reportWebVitals();
